package com.example.bankmanage.entity;

import com.example.bankmanage.constant.StatusTransactions;
import lombok.Data;

import java.util.Date;

@SuppressWarnings("all")
@Data
/**
 * 交易记录表
 */
public class transactions {
    private Integer transactionId;//交易id
    private Integer fromAccountId;//交易账户id
    private Integer toAccountId;//收取账户id
    private Double amount;//金额
    StatusTransactions transactionType; //ENUM('DEPOSIT', 'WITHDRAWAL', 'TRANSFER', 'PAYMENT', 'FEE') NOT NULL,
    private Date transactionDate;
    private String description;
    StatusTransactions status; //ENUM('PENDING', 'COMPLETED', 'FAILED', 'CANCELLED') DEFAULT 'COMPLETED',
    private String referenceNumber;//参考编号
}
